package com.pw.lit.service.impl;

import com.pw.lit.bean.LearnDirectory;
import com.pw.lit.bean.LearnDirectoryExample;
import com.pw.lit.mapper.LearnDirectoryMapper;
import com.pw.lit.service.LearnDirectoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("learnDirectoryService")
public class LearnDirectoryServiceImpl implements LearnDirectoryService {

    @Autowired
    private LearnDirectoryMapper learnDirectoryMapper;
    @Override
    public int countByExample(LearnDirectoryExample example) {
        return learnDirectoryMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(LearnDirectoryExample example) {
        return learnDirectoryMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer lid) {
        return learnDirectoryMapper.deleteByPrimaryKey(lid);
    }

    @Override
    public int insert(LearnDirectory record)
    {
        return learnDirectoryMapper.insert(record);
    }

    @Override
    public int insertSelective(LearnDirectory record) {

        return learnDirectoryMapper.insertSelective(record);
    }

    @Override
    public List<LearnDirectory> selectByExample(LearnDirectoryExample example) {

        return learnDirectoryMapper.selectByExample(example);
    }

    @Override
    public LearnDirectory selectByPrimaryKey(Integer lid) {

        return learnDirectoryMapper.selectByPrimaryKey(lid);
    }

    @Override
    public int updateByExampleSelective(LearnDirectory record, LearnDirectoryExample example) {

        return learnDirectoryMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(LearnDirectory record, LearnDirectoryExample example) {

        return learnDirectoryMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(LearnDirectory record) {

        return learnDirectoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(LearnDirectory record) {

        return learnDirectoryMapper.updateByPrimaryKey(record);
    }
}